import java.io.*;
class Sort
{
    public static void main(String args[])throws IOException
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Plz Enter 5 numbers:");
        int a[]=new int[5];
        for(int i=0;i<5;i++)
        {
            a[i]=Integer.parseInt(br.readLine());
        }
        for(int i=0;i<4;i++)
        {
            for(int j=i+1;j<5;j++)
            {
                if(a[i]<a[j])
                {
                    int temp=a[i];
                    a[i]=a[j];
                    a[j]=temp;
                }
            }
        }
        for(int i=0;i<5;i++)
        {
            System.out.println(a[i]);
        }
    }
}
    